from pyecharts.charts import Bar
from pyecharts import options
sal=[1111,2222,333,3333]
city=["rr","gg","nn","bb"]
bar=Bar()
bar.add_xaxis(city)
bar.add_yaxis("月薪/元",sal)

bar.set_global_opts(title_opts=options.TitleOpts(title="各城市的平均薪水图",subtitle="单位/元"))
bar.render("bravg.html")